package com.hanamaki.unit.junit;
import static org.junit.Assert.*;

import com.hanamaki.unit.junit.Calc;
import org.junit.*;

public class CalcTestJunit {

	static Calc calc;
	@BeforeClass
	public static void setUp() {
		calc = new Calc();
	}


	@Test
	public void addTest() {
		// 预期值   实际值
		Assert.assertEquals(5, calc.add(2, 3));
		System.out.println("加法方法的结果:"+calc.add(2, 3));
	}

	@Test
	public void mulTest() {
		System.out.println("乘法方法的结果:"+calc.mul(2, 3));
	}


}
